package com.ocom.common.entity.card;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "point_config")
public class EntityPointConfig implements Serializable {

	private static final Long serialVersionUID = -3413658250859711454L;

	@TableId(value = "rest_id", type = IdType.AUTO)
	private Long restId;
	private Long comId;
	private Long pointId;
	private String logoUrl;
	private String gzhAppid;
	private String qrCodeUrl;
	private String address;
	private String remark;
	private Long receiptId;

	private Integer limitType;

	private String limitPara;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

	@TableField(exist = false)
	private String pointName;
	@TableField(exist = false)
	private String receiptName;

	@TableField(exist = false)
	private Integer merchId;

	@TableField(exist = false)
	private List<EntityXfMealTime> mealTimes;

}
